package com.gensdai.leliang.base;


import com.gensdai.leliang.utils.VersionUtils;

import android.annotation.SuppressLint;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

@SuppressLint("NewApi")
public abstract class BaseActionbarActivityNoRes extends AppCompatActivity {
    public Toolbar mToolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }


    @Override
    public void setSupportActionBar(@Nullable Toolbar toolbar) {
        try {

            if (VersionUtils.hasLollipop())
                toolbar.setElevation(0f);
            toolbar.setTitleTextColor(Color.parseColor("#ffffff"));
            super.setSupportActionBar(toolbar);
        } catch (Throwable t) {

        }
    }





}
